import numpy as np

a = np.array([[30,65,70],[90,95,10],[50,90,60]])
print("原始值为:",a)

print("计算沿着水平方向的中位值:",np.median(a,axis=1))
print("计算沿着垂直方向的中位值:",np.median(a,axis=0))